package cn.rokhdelar.ams.management.domain.query;

import cn.rokhdelar.ams.common.domain.query.PageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author Rokhdelar
 * @since 2025/3/25 -- 14:41
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "登录日志查询条件")
public class LoginLogQuery extends PageQuery {
    @Schema(description = "登录账号")
    private String username;

    @Schema(description = "登录是否成功")
    private Boolean status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束时间")
    private LocalDateTime endTime;
}
